﻿using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using eztvReaderLib;
namespace eztvReader
{
    /// <summary>
    /// Interaction logic for Contents.xaml
    /// </summary>
    public partial class Contents : Page
    {
        public Contents()
        {
            InitializeComponent();
        }
        public static List<ezReader.Item> list;

        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            if (list == null) return;
            foreach (object newItem in list)
                this.listView1.Items.Add(newItem);
            list.Clear();
            this.Title = "eztv RSS Feed Reader :: updated at " + (object)DateTime.Now;
        }

        private void Hyperlink_Click(object sender, RoutedEventArgs e)
        {

        }

        private void Image_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            Image i = (Image)sender;
            
            System.Diagnostics.Process.Start(i.ToolTip.ToString());
        }
    }
}
